<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <link rel="stylesheet" href="/style/css/ch-ui.admin.css">
    <link rel="stylesheet" href="/style/font/css/font-awesome.min.css">
</head>
<body>
<!--面包屑导航 开始-->
<div class="crumb_warp">
    <!--<i class="fa fa-bell"></i> 欢迎使用登陆网站后台，建站的首选工具。-->
    <i class="fa fa-home"></i> <a href="/">首页</a> &raquo; <a href="#">请假</a> &raquo; 申请
</div>
<!--面包屑导航 结束-->

<div class="result_wrap">
    <p id="dic_error" th:text="${msg}" style="color:red"></p>
    <form action="/emp/leave/add" method="post" onsubmit="">
        <table class="add_tab">
            <tbody>
            <tr>
                <th><i class="require">*</i>
                    <th:block th:text="姓名"></th:block>
                </th>
                <td>
                    <input id="name" type="text" name="name">
                </td>
            </tr>

            <tr>
                <th><i class="require">*</i>类型:</th>
                <td>
                    <select name="type" th:if="${#lists.size(types) gt 0}">
                        <option>未选择</option>
                        <th:block th:each="type,index:${types}">
                            <option th:value="${type.name}" th:text="${type.name}"></option>
                        </th:block>
                    </select>
                </td>
            </tr>

            <tr>
                <th><i class="require">*</i>
                    <th:block th:text="理由"></th:block>
                </th>
                <td>
                    <input id="reason" type="text" name="reason">
                </td>
            </tr>

            <tr>
                <th><i class="require">*</i>
                    <th:block th:text="开始日期"></th:block>
                </th>
                <td>
                    <input id="start" type="text" name="start">
                </td>
            </tr>

            <tr>
                <th><i class="require">*</i>
                    <th:block th:text="结束日期"></th:block>
                </th>
                <td>
                    <input id="end" type="text" name="end">
                </td>
            </tr>

            <tr>
                <th></th>
                <td>
                    <input type="submit" value="提交">
                    <input type="button" class="back" onclick="history.go(-1)" value="返回">
                </td>
            </tr>
            </tbody>
        </table>
    </form>
</div>
<script type="text/javascript" src="/style/js/jquery.js"></script>
<script type="text/javascript" src="/style/js/ch-ui.admin.js"></script>
</body>
</html>